#ifndef MOVEABLEITEM_H
#define MOVEABLEITEM_H

#include "BaseItem.h"

class MoveableItem : public BaseItem
{
	Q_OBJECT

protected:
	QPoint _prevPos;

public:
	MoveableItem(QWidget* parent = NULL);

protected:
	void paintEvent(QPaintEvent *event);
	void mousePressEvent(QMouseEvent*event);
	void mouseReleaseEvent(QMouseEvent*event);
	void mouseMoveEvent(QMouseEvent*event);

signals:
	void mouseDown();
	void mouseUp();
	void mouseMove();
};

#endif // MOVEABLEITEM_H
